package com.yssoft.entity.core;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yssoft.entity.CommonEntity;
import com.yssoft.utils.CompareAnno;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import java.util.Date;

/**
 * 企业表实体类
 * t_enterprise
 *
 * @author
 */
@Data
@Table(name = "t_enterprise")
public class TEnterprise extends CommonEntity {
    /**
     * 主键
     */
    @Id
    @GeneratedValue(generator = "JDBC")
    private Integer id;

    /**
     * 区域
     */
    private Integer t_a_id;

    /**
     * 行业类别
     */
    private Integer t_i_id;

    /**
     * 企业名称
     */
    private String name;

    /**
     * 企业QS号
     */
    private String qs;

    /**
     * 企业SC号
     */
    private String sc;

    /**
     * 营业执照代码
     */
    private String code;

    /**
     * 企业简称
     */
    @CompareAnno(name = "企业简称")
    private String abbreviation;

    /**
     * 经济性质
     */
    @CompareAnno(name = "经济性质")
    private String type;

    /**
     * 注册地址
     */
    @CompareAnno(name = "注册地址")
    private String regAddress;

    /**
     * 生产地址
     */
    @CompareAnno(name = "生产地址")
    private String productAddress;

    /**
     * 法人
     */
    @CompareAnno(name = "法人")
    private String legalPerson;

    /**
     * 联系人
     */
    @CompareAnno(name = "联系人")
    private String contact;

    /**
     * 联系电话
     */
    @CompareAnno(name = "联系电话")
    private String phone;

    /**
     * 安全管理员
     */
    @CompareAnno(name = "安全管理员")
    private String securityOfficer;

    /**
     * 生产状态
     */
    @CompareAnno(name = "生产状态")
    private String productStat;

    /**
     * 传真
     */
    @CompareAnno(name = "传真")
    private String fax;

    /**
     * 电子邮箱
     */
    @CompareAnno(name = "电子邮箱")
    private String email;

    /**
     * 邮编
     */
    @CompareAnno(name = "邮编")
    private String postcode;

    /**
     * 法人身份证原图
     */
    @CompareAnno(name = "法人身份证原图")
    private String idcardImg;

    /**
     * 法人身份证缩略图
     */
    @CompareAnno(name = "法人身份证缩略图")
    private String idcardTimg;

    /**
     * 企业网址
     */
    @CompareAnno(name = "企业网址")
    private String website;

    /**
     * 企业logo原图
     */
    @CompareAnno(name = "企业logo原图")
    private String logoImg;

    /**
     * 企业logo缩略图
     */
    @CompareAnno(name = "企业logo缩略图")
    private String logoTimg;

    /**
     * 审核状态
     */
    private String approvalStat;

    /**
     * 审核时间
     */
    private Date approvalTime;

    /**
     * 审核人
     */
    private String approvalPerson;

    /**
     * 部门id
     */
    private Integer deptId;

    /**
     * 部门名称
     */
    @CompareAnno(name = "部门名称")
    private String deptName;

    /**
     * 建厂时间
     */
    @CompareAnno(name = "建厂时间")
    private Date buildingDate;

    /**
     * 企业总人数
     */
    @CompareAnno(name = "企业总人数")
    private Integer totalManCount;

    /**
     * 专业技术人员数
     */
    @CompareAnno(name = "专业技术人员数")
    private Integer technicalManCount;

    /**
     * 占地面积
     */
    @CompareAnno(name = "占地面积")
    private String areasValue;

    /**
     * 建筑面积
     */
    @CompareAnno(name = "建筑面积")
    private String buildingValue;

    /**
     * 固定资产
     */
    @CompareAnno(name = "固定资产")
    private String fixedAssetsValue;

    /**
     * 流动资产
     */
    @CompareAnno(name = "流动资产")
    private String currentAssetsValue;

    /**
     * 年产总值
     */
    @CompareAnno(name = "年产总值")
    private String totalValue;

    /**
     * 年销售额
     */
    @CompareAnno(name = "年销售额")
    private String salesValue;

    /**
     * 年缴税金额
     */
    @CompareAnno(name = "年缴税金额")
    private String taxesValue;

    /**
     * 年利润
     */
    @CompareAnno(name = "年利润")
    private String profitValue;

    /**
     * 是否取得注册：0-否 1-是
     */
    private String isReg;

    /**
     * 是否通过HACCP：0-否 1-是
     */
    private String isHaccp;

    /**
     * 是否通过GMP
     */
    @CompareAnno(name = "是否通过GMP")
    private String isGmp;

    /**
     * 银行开户名称
     */
    @CompareAnno(name = "银行开户名称")
    private String bankNam;

    /**
     * 开户银行帐号
     */
    @CompareAnno(name = "开户银行帐号")
    private String bankAccount;

    /**
     * 安全管理员身份证号
     */
    @CompareAnno(name = "安全管理员身份证号")
    private String securityOfficerId;

    /**
     * 社会信用代码
     */
    @CompareAnno(name = "社会信用代码")
    private String socialCreditCode;

    /**
     * 变更事项
     */
    private String changeItem;

    /**
     * 申请表备注
     */
    @CompareAnno(name = "申请表备注")
    private String sqRemark;

    /**
     * 企业简介
     */
    private String introduction;

    /**
     * 许可证照片
     */
    @CompareAnno(name = "许可证照片")
    private String licenseImg;
    @Transient
    private String licenseImgName;
    /**
     * 营业执照图片缩略图
     */
    @Transient
    private String licenseImgTh;
    /**
     * 变更资料名称
     */
    private String changeMaterialName;
    /**
     * 变更资料 change_materials
     */
    private String changeMaterials;

    /**
     * 许可证-发放日期
     */
    @CompareAnno(name = "许可证-发放日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date grantDate;
    /**
     * 许可证-失效日期
     */
    @CompareAnno(name = "许可证-失效日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date invalidDate;
    /**
     * 监管端-许可证文件
     */
    @Transient
    private String licenseFile;
    /**
     * 监管端-许可证文件ID
     */
    @Transient
    private String licenseFileId;

    @CompareAnno(name = "营业执照-发放日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date issueDate;
    @CompareAnno(name = "营业执照-失效日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date expireDate;
    @CompareAnno(name = "营业执照图")
    private String picImg;
    /**
     * 监管端-营业执照文件
     */
    @Transient
    private String businessLicenseFile;
    /**
     * 监管端-营业执照文件id
     */
    @Transient
    private String businessLicenseFileId;

    private static final long serialVersionUID = 1L;


}